import Base from './components/Base';
import Home from './components/Home';
import Files from './components/Files';
import Settings from './components/Settings';
import Login from './components/Login';
import Welcome from './components/Welcome';

const routes = [
    {
        path: '/Login',
        name: 'Login',
        component: Login
    },
    {
        path: '/',
        name: 'Welcome',
        component: Welcome
    },
    {
        path: '/:md5',
        name: 'manage',
        component: Base,
        children: [
            {
                path: 'home',
                name: 'home',
                component: Home
            },
            {
                path: 'files',
                name: 'files',
                component: Files
            },
            {
                path: 'settings',
                name: 'settings',
                component: Settings
            }
        ]
    }
];

export default routes